package com.sl.au.service;

import com.sl.au.entity.Template;
import com.sl.au.entity.User;
import com.sl.au.repository.TemplateRepository;

import java.util.List;

public interface TemplateService extends BaseService {
	TemplateRepository getRepository();
	
	/*********** 获取页面模板信息 *************/
	List<Template> getPageByKey(int start, int length, String key, String orderName, String dir);
	
	int getPageByKeyCount(String key);
	
	/*********** 获取模板未绑定人员信息 *************/
	List<User> getNotSetUserPageByKey(int start, int length, String templateId, String key, String orderName, String dir);
	
	int getNotSetUserPageByKeyCount(String templateId, String key);

	/*********** 获取模板绑定人员信息 *************/
	List<User> getSetUserPageByKey(int start, int length, String templateId, String gradingId, String key, String orderName, String dir);
	
	int getSetUserPageByKeyCount(String templateId, String gradingId, String key);
	
	/****************************************/
	
	void saveTemplate(Template template);
}
